package com.pascuit.gpxhandler.shared.dto;

import java.util.Date;
import java.util.List;

import javax.jdo.annotations.Extension;
import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

import com.google.gwt.user.client.rpc.IsSerializable;

/**
 * 
 * @author Parant
 * 
 */
@PersistenceCapable
public class GpxInfoDto implements IsSerializable {

	@PrimaryKey
	@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
	@Extension(vendorName = "datanucleus", key = "gae.encoded-pk", value = "true")
	private String key;
	@Persistent
	private Date startDate;
	@Persistent
	private Date gpsStartDate;
	@Persistent
	private Date gpsEndDate;
	@Persistent
	private String sourceUrl;
	@Persistent
	private String blogKey;
	@Persistent
	private String name;
	@Persistent
	private UserDto userDto;
	private List<LatLngDto> latLng;

	public UserDto getUserDto() {
		return userDto;
	}

	public void setUserDto(UserDto userDto) {
		this.userDto = userDto;
	}

	public List<LatLngDto> getLatLng() {
		return latLng;
	}

	public void setLatLng(List<LatLngDto> latLng) {
		this.latLng = latLng;
	}

	public Date getGpsEndDate() {
		return gpsEndDate;
	}

	public void setGpsEndDate(Date gpsEndDate) {
		this.gpsEndDate = gpsEndDate;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getBlogKey() {
		return blogKey;
	}

	public void setBlogKey(String blogKey) {
		this.blogKey = blogKey;
	}

	public String getSourceUrl() {
		return sourceUrl;
	}

	public void setSourceUrl(String sourceUrl) {
		this.sourceUrl = sourceUrl;
	}

	public Date getStartDate() {
		return startDate;
	}

	public void setStartDate(Date startDate) {
		this.startDate = startDate;
	}

	public String getKey() {
		return key;
	}

	public void setKey(String key) {
		this.key = key;
	}

	public Date getGpsStartDate() {
		return gpsStartDate;
	}

	public void setGpsStartDate(Date gpsStartDate) {
		this.gpsStartDate = gpsStartDate;
	}
}
